package com.zy.mapper;

import java.util.List;

import com.zy.entity.Course;
import com.zy.entity.Subject;
import com.zy.entity.User;
import com.zy.entity.Video;

public interface UserMapper {
	//登录
	User login(User u);
	//更改用户资料
	void updateUser(User u);
	//根据id查询用户
	User selectUserById(User u);
	//根据id修改头像
	void upLoadImage(User u);
	//修改密码
	void updatePassword(User u);
	//查询所有邮箱
	List<User> selectAllEmail();
	//注册邮箱密码
	void insertUser(User u);
	//重置密码
	void updatePasswordByEmail(User u);
	//根据email查询用户
	User selectUserByEmail(User u);
	//科目三表查询
	Subject selectSubjectById(Subject s);
	//根据id查询视频
	Video selectVideoById(Video v);
	//根据id查询课程
	Course selectCourseById(Course c);
	
	
	
	
	
	
	
	
	
	
	
	
}
